<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>开始使用 Layui</title>
  <link href="../src/css/layui.css" rel="stylesheet">
</head>
<body>
<!-- HTML -->

<script src="../src/layui.js"></script>
<script>
// 使用组件
layui.use(['layer'], function(){
  var layer = layui.layer;
  var hint = layui.hint();

  hint.error('出错啦');// 向控制台打印一些异常信息
});
</script>
</body>
</html>